/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.railway.app;

import java.awt.Graphics;
import java.awt.Image;
import javax.swing.ImageIcon;

/**
 *
 * @author Kenny
 */
public class StaffPanel extends javax.swing.JPanel {

    Image imgArrow = new ImageIcon(this.getClass().getResource("/com/railway/image/arrow.png")).getImage();
    /**
     * Creates new form RoutePanel
     */
    public StaffPanel() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jpSchedule = new javax.swing.JPanel();
        jpScheduleArrow = new javax.swing.JPanel(){
            protected void paintComponent(Graphics g){
                super.paintComponent(g);
                g.drawImage(imgArrow, 0, 0, getWidth(), getHeight(), this);
            }
        };

        setPreferredSize(new java.awt.Dimension(870, 460));
        setLayout(null);

        jpSchedule.setBackground(new java.awt.Color(220, 220, 220));
        jpSchedule.setLayout(null);
        add(jpSchedule);
        jpSchedule.setBounds(0, 20, 870, 440);

        javax.swing.GroupLayout jpScheduleArrowLayout = new javax.swing.GroupLayout(jpScheduleArrow);
        jpScheduleArrow.setLayout(jpScheduleArrowLayout);
        jpScheduleArrowLayout.setHorizontalGroup(
            jpScheduleArrowLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 150, Short.MAX_VALUE)
        );
        jpScheduleArrowLayout.setVerticalGroup(
            jpScheduleArrowLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 20, Short.MAX_VALUE)
        );

        add(jpScheduleArrow);
        jpScheduleArrow.setBounds(360, 0, 150, 20);
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel jpSchedule;
    private javax.swing.JPanel jpScheduleArrow;
    // End of variables declaration//GEN-END:variables
}
